[SUBJECT]
Description=Converts bewteen different units of mass
ImageIndex=-1
Folder=Mathematics


[BODY_TEXT]
;<!-- Cut-N-Paste JavaScript from ISN Toolbox 
;Copyright 1996, Infohiway Server Network.  Restricted use is hereby
;granted (both personal and commercial use OK so long as this code is 
;not *directly* sold), providing this notice is buried somewhere deep
;in your HTML document.  A link to http://www.infohiway.com is always 
;appreciated, but is absolutely and positively not necessary. :-) -->
;
;<script language="JavaScript">
;<!-- Hide JavaScript from Java-Impaired Browsers
;
;function initArray() {
;  this.length = initArray.arguments.length;
;  for (var i = 0; i < this.length; i++) {
;    this[i] = initArray.arguments[i];
;    }
;
;  }
;
;/* Please don't ask about this work-around. It works... We're sure arrays
;    will be better supported soon. */
;
;var isn06 = new initArray("4b","5b","8b","8b");
;
;isn06[0] = "~01~115432~232.15~335.27~42.6792~52.205~60.001102~70.0009842~80.001~9";
;
;isn06[1] = "~06.48e-5~11~20.002083~30.002286~40.0001736~50.0001429~67.143e-8~76.378e-8~86.48e-8~9";
;
;isn06[2] = "~00.0311~1480~21~31.09714~40.083333~50.06857~63.429e-5~73.061e-5~83.11e-5~9";
;
;isn06[3] = "~00.02835~1437.5~20.9115~31~40.07595~50.0625~63.125e-5~72.79e-5~82.835e-5~9";
;
;isn06[4] = "~00.3732~15760~212~313.17~41~50.8229~64.114e-4~73.673e-4~83.732e-4~9";
;
;isn06[5] = "~00.4536~17000~214.58~316~41.215~51~60.0005~74.464e-4~84.536e-4~9";
;
;isn06[6] = "~0907.2~114000000~229167~332000~42431~52000~61~70.8929~80.9072~9";
;
;isn06[7] = "~01016~115680000~232667~335840~42722~52240~61.12~71~81.016~9";
;
;isn06[8] = "~01000~115432356~232151~335274~42679~52205~61.102~70.9842~81~9";
;
;
;
;
;
;function masCon() {
;
;  // First, get the variables checked by the user
;
;  for (var i = 0; i < 9; i++) {
;
;    if (document.isnform06.masi[i].checked) {
;
;      masi = i;
;
;      masinm = document.isnform06.masi[i].value;
;
;      }
;
;    }
;
;  for (var i = 0; i < 9; i++) {
;
;    if (document.isnform06.maso[i].checked) {
;
;      maso = i;
;
;      masonm = document.isnform06.maso[i].value;
;
;      }
;
;    }
;
;  // Now grab the numeric input by user and parse to be sure numeric
;
;  useri = document.isnform06.masinp.value;
;
;  if (useri == 0) {
;
;    useri = 1;
;
;    document.isnform06.masinp.value = useri;
;
;    }
;
;  mulstr = isn06[masi];
;
;  picker = "~" + maso;
;
;  ps = mulstr.indexOf(picker);
;
;  maso++;
;
;  picker = "~" + maso;
;
;  ps1 = mulstr.indexOf(picker);
;
;  mulstr = mulstr.substring((ps + 2),ps1);
;
;  ps = (useri * mulstr);
;
;  picker = "";
;
;  picker += ps;
;
;  ps1 = picker.indexOf(".");
;
;  if (ps1 > -1) {
;
;    // Correct for binary/floating point conversion error
;
;    ps = ps + .000001;
;
;    picker = "";
;
;    picker += ps;
;
;    ps2 = picker.indexOf("e");
;
;    if (ps2 < 0) {
;
;      picker = picker.substring(0,(ps1 + 6));
;
;      }
;
;    if (ps2 == 0 || ps2 > 0) {
;
;      ps3 = picker.indexOf("00000");
;
;      if (ps3 > 0) {
;
;        picker = picker.substring(0,ps3 + 1) + picker.substring(ps2,picker.length);
;
;        }
;
;      }
;
;    }
;
;  picker = useri + " " + masinm + " = " + picker + " " + masonm;
;
;  document.isnform06.masout.value = picker;
;
;  }
;
;// End Hiding -->
;
;
;
;</script>
;<form name="isnform06">
;<table border="1" width="486" summary="">
;
;<tr><td colspan="10" align="center"><font color="blue"><b>`Caption`</b></font></td></tr>
;
;<tr><td colspan="10" valign="top"><font size="1"><b>First, type the number you wish converted here: </b>
;
;<input type="text" name="masinp" size="30" value="" onChange="masCon();"><br><b>Then, click radio buttons for desired conversion:</font></B></td></tr>
;
;<tr><td align="center"><font color="red" size="1"><b>From:</b></font></td>
;
;<td align="center" valign="top"><font size="1">Kilograms<br> <br><input type="radio" name="masi" value="Kilograms" checked onClick = ""></font></td>
;
;<td align="center" valign="top"><font size="1">Grains<br> <br><input type="radio" name="masi" value="Grains" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">Troy Ounces<br><input type="radio" name="masi" value="Troy Ounces" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">Avoirdupois Ounces*<br><input type="radio" name="masi" value="Avoirdupois Ounces" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">Troy Pounds<br><input type="radio" name="masi" value="Troy Pounds" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">Avoirdupois Pounds*<br><input type="radio" name="masi" value="Avoirdupois Pounds" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">Short Tons<br><input type="radio" name="masi" value="Short Tons" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">Long Tons<br><input type="radio" name="masi" value="Long Tons" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">Metric Tons<br><input type="radio" name="masi" value="Metric Tons" onClick = ""></font></TD></tr>
;
;<tr><td align="center"><font color="red" size="1"><b>To:</b></font></TD>
;
;<td align="center" valign="top"><font size="1">Kilograms<br> <br><input type="radio" name="maso" value="Kilograms" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">Grains<br> <br><input type="radio" name="maso" value="Grains" checked onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">Troy Ounces<br><input type="radio" name="maso" value="Troy Ounces" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">Avoirdupois Ounces*<br><input type="radio" name="maso" value="Avoirdupois Ounces" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">Troy Pounds<br><input type="radio" name="maso" value="Troy Pounds" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">Avoirdupois Pounds*<br><input type="radio" name="maso" value="Avoirdupois Pounds" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">Short Tons<br><input type="radio" name="maso" value="Short Tons" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">Long Tons<br><input type="radio" name="maso" value="Long Tons" onClick = ""></font></TD>
;
;<td align="center" valign="top"><font size="1">Metric Tons<br><input type="radio" name="maso" value="Metric Tons" onClick = ""></font></TD></tr>
;
;<tr><td colspan="10" align="center" valign="top"><font size="1"><input type="button" value=" Click for Conversion " onClick="masCon();"> 
;<input type="reset" value=" Reset Values "><br><input type="text" name="masout" size="60" value="" onClick="masCon();"><br>* Also known as Apothecary Ounces and Pounds
;
;</font></td></tr>
;
;</table></form>
;
;<p>
;
;




[`Caption`]
Kind=S
Value=Mass Equivalents


